package com.gitee.W_Jun.invokedynamic;

/**
 * @author https://gitee.com/W_Jun
 * @date 2021-12-25 15:47
 * @Description 体会invokedynamic指令
 */
@FunctionalInterface
interface Func {
    public boolean func(String str);
}

public class Lambda {
    public void lambda(Func func) {
        return;
    }
    public static void main(String[] args) {
        Lambda lambda = new Lambda();
        Func func = s -> {
            return true;
        };//20 invokedynamic #6 <func, BootstrapMethods #1>
        lambda.lambda(func);

        lambda.lambda(s -> {
            return true;
        });
    }
}